package com.example.restaurant.controller.form;

import com.example.restaurant.common.allenum.StoreStatus;
import com.example.restaurant.common.allenum.StoreType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("修改门店信息模型")
public class UpdateStoreForm {
    //门店ID
    @NotNull
    @ApiModelProperty("门店ID")
    @Min(1)
    private Integer id;

    //状态 营业中 START|歇业中STOP
    @NotNull
    @ApiModelProperty("状态 营业中 START|歇业中STOP")
    private StoreStatus status;

    //门店位置
    @NotBlank
    @ApiModelProperty("门店位置")
    private String location;

    //门店联系电话
    @NotNull
    @ApiModelProperty("门店联系电话")
    private Long telephone;
    //门店名
    @NotBlank
    @ApiModelProperty("门店名")
    private String storeName;

    //门店类型
    @NotNull
    @ApiModelProperty("门店类型 CHINESE_FOOD中餐|WESTERN_FOOD 西餐")
    private StoreType storeType;
}
